package org.sun.sample.pojo;

/**
 * Created by aron on 16-4-11.
 */
public class SwitchSample {

    public static final String RED= "RED";
    public static final String BLUE= "BLUE";
    public static final String GREEN= "GREEN";


    public void executeSwitch(String color) {
        switch (color) {
            case SwitchSample.RED:
                System.out.println(color);
                break;
            case SwitchSample.BLUE:
                System.out.println(color);
                break;
            case SwitchSample.GREEN:
                System.out.println(color);
                break;
            default:
                System.out.println("not match !!!");
        }
    }

}
